﻿using Autofac.Core;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;

namespace TXTD.Admin.Framework.Autofac
{
    public class PropertySelector : IPropertySelector
    {
        public bool InjectProperty(PropertyInfo propertyInfo, object instance)
        {
            if (propertyInfo != null)
            {
                return propertyInfo.CustomAttributes.Any(t => t.AttributeType == typeof(PropertiesAutowiredAttribute));
            }
            return false;
        }
    }
}
